package com.example.demo.modules.base.entity;

import com.example.demo.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author yw
 */
@Data
@Entity
@Table(name = "t_resource")
@TableName("t_resource")
@ApiModel(value = "权限")
public class Resource extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单/权限名称")
    private String name;

    @ApiModelProperty(value = "页面路径/资源链接url")
    private String path;

}